package org.example.mapper;

import org.apache.ibatis.annotations.Update;
import org.example.bean.Menu;

import java.util.List;

/**
 * @author 邹斌
 * @create 2024/3/21
 */
public interface MenuDao {
    public List<Menu> list();
    @Update("UPDATE menu SET `name`=#{name},address=#{address}WHERE id=#{id}")
    public void update(Menu menu);
}
